/// UpdateDiscountDto
class UpdateDiscountDto {
  /// 卡分类ID列表
  final List<int> cardCategoryIdList;
  /// 折扣，小数
  final String discount;

  UpdateDiscountDto({
    required this.cardCategoryIdList,
    required this.discount,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['cardCategoryIdList'] = cardCategoryIdList;
    data['discount'] = discount;
    return data;
  }

  factory UpdateDiscountDto.fromJson(Map<String, dynamic> json) {
    return UpdateDiscountDto(
      cardCategoryIdList: json['cardCategoryIdList'] != null ? (json['cardCategoryIdList'] as List).map<int>((e) => e as int).toList() : [],
      discount: json['discount'],
    );
  }
}